package com.njwd.rpc.api;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.njwd.common.rpc.ResponseVo;

public class SmsServicesStub implements SmsServices {
	
	private Logger log = LoggerFactory.getLogger(SmsServicesStub.class);
	
	private  SmsServices smsServices;
	public SmsServicesStub(SmsServices smsServices) {
		
		this.smsServices = smsServices;
	}


    
	@Override
	public ResponseVo<Boolean> sendSms(String mobile) {
		try {
			return smsServices.sendSms(mobile);
		} catch (Exception e) {
			log.error("sms error");
		}
		return  new ResponseVo<Boolean>(false, 200, "network timeout");
	}

}
